package com.itheima.ydd.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysConfigDtoOther  implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 配置配置键名英文
     */
    @JsonProperty("attr_key")
    @JSONField(name = "attr_key")
    private String attrKey;

    /**
     * 配置值内容
     */
    @JsonProperty("attr_value")
    @JSONField(name = "attr_value")
    private String attrValue;

    /**
     * 验证规则
     */
    private String validator;

    /**
     * 字段类型，参见字段表
     */
    private Integer type;

    /**
     * 单选多选数据值
     */
    @JsonProperty("config_value")
    @JSONField(name = "config_value")
    private List<Map> configValue;
}